package com.huawei.appgallery.updatemanager.ui.cardkit.card;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import huawei.widget.HwButton;
import o.cgz;
import o.chy;
import o.BaseAlertDialog;
import o.cks;
import o.czk$c;
import o.czk$h;
import o.czk.g;
import o.czu;
import o.dba;
import o.dbn;

public class AllCancelIgnoreButtonCard extends BaseDistCard {
    private Context ʼ;
    private HwButton ˋ;

    public AllCancelIgnoreButtonCard(Context context) {
        super(context);
        this.ʼ = context;
    }

    public cgz ˏ(View view) {
        this.ˋ = (HwButton) view.findViewById(czk$c.ˋ);
        ʽ(view);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        if (this.ˋ != null) {
            this.ˋ.setOnClickListener(new OnClickListener(this) {
                final /* synthetic */ AllCancelIgnoreButtonCard ˊ;

                {
                    this.ˊ = r1;
                }

                public void onClick(View view) {
                    int ˏ = ((czu) dbn.ˎ(czu.class)).ˏ(1);
                    final BaseAlertDialog ˋ = BaseAlertDialog.ˋ(this.ˊ.ʼ, this.ˊ.ʼ.getString(g.ॱॱ), this.ˊ.ʼ.getResources().getQuantityString(czk$h.ˎ, ˏ, new Object[]{Integer.valueOf(ˏ)}));
                    ˋ.ॱ();
                    ˋ.ˎ(new cks(this) {
                        final /* synthetic */ AnonymousClass4 ˏ;

                        public void enableNetworking() {
                            dba.ˏ(this.ˏ.ˊ.ʼ);
                            ˋ.ˏ();
                        }

                        public void upgrade() {
                        }

                        public void ˋ() {
                        }
                    });
                }
            });
        }
        super.ˏ(cardBean);
    }

    public void ॱ(chy o_chy) {
    }
}
